Read an entire graymap file into memory, returning the
allocated array and filling in the rows, cols and maxval
variables. This function combines ppppggggmmmm____rrrreeeeaaaaddddppppggggmmmmiiiinnnniiiitttt(((()))),
ppppggggmmmm____aaaallllllllooooccccaaaarrrrrrrraaaayyyy(((()))) and ppppggggmmmm____rrrreeeeaaaaddddppppggggmmmmrrrroooowwww(((()))).
WWWWRRRRIIIITTTTIIIINNNNGGGG FFFFIIIILLLLEEEESSSS
void pgm_writepgminit( FILE* fp, int cols, int rows, gray maxval, int forceplain )
Write the header for a portable graymap file. The
forceplain flag forces a plain-format file to be written, as
opposed to a raw-format one.
void pgm_writepgmrow( FILE* fp, gray* grayrow, int cols, gray maxval, int forceplain )
Write a row from a portable graymap.
void pgm_writepgm( FILE* fp, gray** grays, int cols, int rows, gray maxval, int forceplain )
Write the header and all data for a portable graymap. This
function combines ppppggggmmmm____wwwwrrrriiiitttteeeeppppggggmmmmiiiinnnniiiitttt(((()))) and ppppggggmmmm____wwwwrrrriiiitttteeeeppppggggmmmmrrrroooowwww(((()))).
SSSSEEEEEEEE AAAALLLLSSSSOOOO
libpbm(3), libppm(3), libpnm(3)
AAAAUUUUTTTTHHHHOOOORRRR
Copyright (C) 1989, 1991 by Tony Hansen and Jef Poskanzer.